package com.duxd.springsecurityfinal.springsecurityfinal.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author dong
 * @date 2022/1/15 0015
 * 自定义注解：判断是否需要认证才能调用controller
 */

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NeedAuthentication {

    static final String name = "need";

    public boolean need() default true;
}
